22. Quiz: ORDER BY Part II

Questions

  1. Write a query that displays the order ID, account ID, and total dollar amount for all the orders, sorted first by the account ID (in ascending order), and then by the total dollar amount (in descending order).

  2. Now write a query that again displays order ID, account ID, and total dollar amount for each order, but this time sorted first by total dollar amount (in descending order), and then by account ID (in ascending order).

  3. Compare the results of these two queries above. How are the results different when you switch the column you sort on first?

Code

If you need a code on the https://github.com/udacity.